package com.it.emall.service;

public interface LikesService {

    /**
     * 处理用户点赞/取消点赞
     * @param userId 用户ID
     * @param recipeId 食谱ID
     * @return 0=点赞成功, 1=取消点赞成功, -1=失败
     */
    int toggleLike(int userId, int recipeId);


    /**
     * 获取点赞状态
     * @param userId
     * @param recipeId
     * @return
     */
    boolean checkLikeStatus(Integer userId, Integer recipeId);
}
